package com.zygh.policeasset.mapper;

import com.zygh.policeasset.pojo.DictData;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;

@Mapper
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/mapper/DictDataMapper.class */
public interface DictDataMapper {
    @Select({"<script>", "select * from dict_data <where> <if test='dictType != null and dictType.length &gt; 0 '>dict_type = #{dictType,jdbcType=VARCHAR}</if></where> </script>"})
    @Results({@Result(column = "dict_type", property = "dictType", jdbcType = JdbcType.VARCHAR), @Result(column = "dict_value", property = "dictValue", jdbcType = JdbcType.VARCHAR), @Result(column = "dict_name", property = "dictName", jdbcType = JdbcType.VARCHAR)})
    List<DictData> findBydictType(@Param("dictType") String str);

    @Select({"<script>", "select * from dict_data <where> <if test='dictType != null and dictType.length &gt; 0 '>dict_type = #{dictType,jdbcType=VARCHAR}</if><if test='dictValue != null and dictValue.length &gt; 0 '>and dict_value = #{dictValue,jdbcType=VARCHAR}</if></where> </script>"})
    @Results({@Result(column = "dict_type", property = "dictType", jdbcType = JdbcType.VARCHAR), @Result(column = "dict_value", property = "dictValue", jdbcType = JdbcType.VARCHAR), @Result(column = "dict_name", property = "dictName", jdbcType = JdbcType.VARCHAR)})
    DictData findBydictTypeAndValue(@Param("dictType") String str, @Param("dictValue") String str2);
}